package com.employ.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.util.List;

@TableName("menuList")
@Data
public class Menu {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id = 0;
    /** 提交时间 **/
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date date;
    private String name;
    private String address;
    private Integer type;
/** 提交时间 **/
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date created;
    /** 提交时间 **/
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date updated;
    private Integer statu;
    private Integer parentId;
    private String path;
    private Integer perms;
    private String component;
    private String icon;
    private Integer orderNum;
    private List<Menu> children;

}
